package sellComputer;

public class AMDCpu extends Cpu{
	private String name = "amd1";
	private int coreNum = 6;
	private int price = 2000;
	
	public AMDCpu(String name,int coreNum,int price) {
		this.name = name;
		this.coreNum = coreNum;
		this.price = price;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public int getCoreNum() {
		return coreNum;
	}
	
	public void setCoreNum(int coreNum) {
		this.coreNum = coreNum;
	}
	
	public int getPrice() {
		return price;
	}
	
	public void setPrice(int price) {
		this.price = price;
	}
	
	@Override
	public void work() {
		System.out.println("AMD cpu work");
	}


}
